﻿#region References

using Data.Repositories.AppUsers;
using Data.Repositories.Roles;
using Data.Repositories.Users;

#endregion

namespace Data
{
    public static class RepositoriesManager
    {
        private static IAppUsersRepository _appUsersRepository;
        private static IRolesRepository _rolesRepository;
        private static IUsersRepository _usersRepository;

        public static IAppUsersRepository AppUsersRepository
        {
            get { return _appUsersRepository ?? (_appUsersRepository = new AppUsersRepository()); }
        }

        public static IRolesRepository RolesRepository
        {
            get { return _rolesRepository ?? (_rolesRepository = new RolesRepository()); }
        }

        public static IUsersRepository UsersRepository
        {
            get { return _usersRepository ?? (_usersRepository = new UsersRepository()); }
        }
    }
}